import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop015_商品管理管理分类前台侧边设置"

firefox=openBrowser(url)

firefox.get(urlAdmin)

DBshopLoginAdmin(firefox)

DBshopEnterMenu3(firefox,'商品管理','管理分类','前台侧边设置')

firefox.find_element_by_xpath('//a[@class="btn btn-small btn-primary"]').click()

firefox.find_element_by_id('frontside_name').send_keys('网站很好看')

firefox.find_element_by_xpath('//button[@class="btn btn-small btn-primary"]').click()

try:
    firefox.find_element_by_link_text("编辑")

    writeLog("%s 测试通过" % testCase)
except:
    writeLog("%s 测试失败" % testCase)

    getPhoto(firefox)
firefox.quit()


